package com.longtop.framework.sys.file.supports;

import java.io.File;

public class UploadFile {
	private String requestName;

	private String relativePath;

	private File fileObject = null;

	private String fileContentType;

	/**
	 * 文件大小 如26KB
	 */
	private String fileSize;

	/**
	 * 文件长度，可以和大小转换，单位：字节， 如:20125412
	 */
	private long fileLength;

	/**
	 * 文件名
	 */
	private String fileName;

	/**
	 * 文件扩展名，如txt
	 */
	private String fileExt;

	/**
	 * 文件物理存放文件名
	 */
	private String saveFileName;

	private String id;

	private String viewPath;

	private String savePath;

	private String module_id;

	private boolean tempFile = false;

	private String beanConfig;

	private boolean contextPath = true;

	// 以下是一些属性的get set方法

	public String getFileSize() {
		return fileSize;
	}

	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileExt() {
		return fileExt;
	}

	public void setFileExt(String fileExt) {
		this.fileExt = fileExt;
	}

	public String getSaveFileName() {
		return saveFileName;
	}

	public void setSaveFileName(String saveFileName) {
		this.saveFileName = saveFileName;
	}

	public long getFileLength() {
		return fileLength;
	}

	public void setFileLength(long fileLength) {
		this.fileLength = fileLength;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getViewPath() {
		return viewPath;
	}

	public void setViewPath(String viewPath) {
		this.viewPath = viewPath;
	}

	public String getSavePath() {
		return savePath;
	}

	public void setSavePath(String savePath) {
		this.savePath = savePath;
	}

	public String getModule_id() {
		return module_id;
	}

	public void setModule_id(String module_id) {
		this.module_id = module_id;
	}

	public String getFileContentType() {
		return fileContentType;
	}

	public void setFileContentType(String fileContentType) {
		this.fileContentType = fileContentType;
	}

	public File getFileObject() {
		return fileObject;
	}

	public void setFileObject(File fileObject) {
		this.fileObject = fileObject;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}

	public String getRequestName() {
		return requestName;
	}

	public void setRequestName(String requestName) {
		this.requestName = requestName;
	}

	public boolean isTempFile() {
		return tempFile;
	}

	public void setTempFile(boolean tempFile) {
		this.tempFile = tempFile;
	}

	public String getBeanConfig() {
		return beanConfig;
	}

	public void setBeanConfig(String beanConfig) {
		this.beanConfig = beanConfig;
	}

	public boolean isContextPath() {
		return contextPath;
	}

	public void setContextPath(boolean contextPath) {
		this.contextPath = contextPath;
	}

}
